package bugreportingsystem;

import java.awt.Image;
import java.net.URL;
import java.util.Locale;
import java.util.ResourceBundle;
import javax.swing.*;

public class JFrameMainFram extends javax.swing.JFrame {

    public static int index;
    private String language = JFrameLogin.language;
    private String country = JFrameLogin.country;
    private Locale lc = new Locale(language, country);
    private ResourceBundle rb = ResourceBundle.getBundle("bugreportingsystem/resources/JFrameMainFram", lc);

    public JFrameMainFram() {
        initComponents();

        //them icon cho fram
        URL url = getClass().getResource("resources/manager.png");
        Image icon = new ImageIcon(url).getImage();
        this.setIconImage(icon);
        MyTranslate();
        Intermediate.jMainFram = this;
    }

    private Icon SetImage(String nameimage) {
        URL url = getClass().getResource("resources/" + nameimage);
        Icon icon = new ImageIcon(url);
        return icon;
    }

    private void MyTranslate() {
        ChangePassword.setIcon(SetImage(rb.getString("ChangePass")));
        Employee.setIcon(SetImage(rb.getString("Employee.icon")));
        Order.setIcon(SetImage(rb.getString("Order.icon")));
        Product.setIcon(SetImage(rb.getString("Product.icon")));
        Report.setIcon(SetImage(rb.getString("Report.icon")));
        Solution.setIcon(SetImage(rb.getString("Solution.icon")));

        jLabelLogin.setText(rb.getString("jLabelLogin.text"));
        jLabelGroup.setText(rb.getString("jLabelGroup.text"));
        jLabelStudent.setText(rb.getString("jLabelStudent.text"));
        jLabelNameProject.setText(rb.getString("jLabelNameProject.text"));
        jLabelStartDate.setText(rb.getString("jLabelStartDate.text"));
        jLabelFinish.setText(rb.getString("jLabelFinish.text"));
        jLabel3.setText(rb.getString("jLabel3.text"));
        jLabel4.setText(rb.getString("jLabel4.text"));
        jLabel5.setText(rb.getString("jLabel5.text"));
        jLabel6.setText(rb.getString("jLabel6.text"));
        jLabel7.setText(rb.getString("jLabel7.text"));
        jLabel18.setText(rb.getString("jLabel18.text"));
        jLabel20.setText(rb.getString("jLabel20.text"));
    }

    public void GanUsername(String username) {
        this.jLabelNameemployee.setText(username);
    }

    public void Privilege(String privilege) // phan quyen
    {

        if (privilege.toLowerCase().equals("admin")) {

            this.Employee.setEnabled(false);
            this.Order.setEnabled(false);
            this.Product.setEnabled(false);
            this.Report.setEnabled(false);
            this.Solution.setEnabled(true);
        } else if (privilege.toLowerCase().equals("managecallbackend")) {

            this.Employee.setEnabled(false);
            this.Order.setEnabled(false);
            this.Product.setEnabled(false);
            this.Report.setEnabled(false);
            this.Solution.setEnabled(true);
        } else if (privilege.toLowerCase().equals("managemailbackend")) {
            this.Employee.setEnabled(false);
            this.Order.setEnabled(false);
            this.Product.setEnabled(false);
            this.Report.setEnabled(false);
            this.Solution.setEnabled(true);
        } else if (privilege.toLowerCase().equals("accountmanagement")) {
            this.Employee.setEnabled(true);
            this.Order.setEnabled(false);
            this.Product.setEnabled(false);
            this.Report.setEnabled(false);
            this.Solution.setEnabled(false);
        } else if (privilege.toLowerCase().equals("dispatchandordermanagement")) {
            this.Employee.setEnabled(false);
            this.Order.setEnabled(true);
            this.Product.setEnabled(true);
            this.Report.setEnabled(false);
            this.Solution.setEnabled(false);
        } else if (privilege.toLowerCase().equals("frontend")) {
            this.Employee.setEnabled(false);
            this.Order.setEnabled(false);
            this.Product.setEnabled(false);
            this.Report.setEnabled(true);
            this.Solution.setEnabled(false);
        }


    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        jPanel4 = new javax.swing.JPanel();
        jPanel8 = new javax.swing.JPanel();
        jLabelLogin = new javax.swing.JLabel();
        jPanel9 = new javax.swing.JPanel();
        jLabelNameemployee = new javax.swing.JLabel();
        jPanel6 = new javax.swing.JPanel();
        jLabel10 = new javax.swing.JLabel();
        ChangePassword = new javax.swing.JLabel();
        Employee = new javax.swing.JLabel();
        Order = new javax.swing.JLabel();
        Product = new javax.swing.JLabel();
        Report = new javax.swing.JLabel();
        Solution = new javax.swing.JLabel();
        jPanel7 = new javax.swing.JPanel();
        jPanel3 = new javax.swing.JPanel();
        jLabelGroup = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabelStudent = new javax.swing.JLabel();
        jLabelNameProject = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel16 = new javax.swing.JLabel();
        jLabelStartDate = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        jLabelFinish = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jPanel5 = new javax.swing.JPanel();
        jDesktopPane1 = new javax.swing.JDesktopPane();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(bugreportingsystem.BugReportingSystemApp.class).getContext().getResourceMap(JFrameMainFram.class);
        setBackground(resourceMap.getColor("Form.background")); // NOI18N
        setMinimumSize(new java.awt.Dimension(1350, 720));
        setName("Form"); // NOI18N
        setResizable(false);
        getContentPane().setLayout(new java.awt.BorderLayout(3, 0));

        jPanel1.setName("jPanel1"); // NOI18N
        jPanel1.setPreferredSize(new java.awt.Dimension(997, 80));
        jPanel1.setLayout(new java.awt.GridLayout(1, 0));

        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setIcon(resourceMap.getIcon("jLabel1.icon")); // NOI18N
        jLabel1.setMaximumSize(new java.awt.Dimension(41, 50));
        jLabel1.setMinimumSize(new java.awt.Dimension(41, 50));
        jLabel1.setName("jLabel1"); // NOI18N
        jLabel1.setPreferredSize(new java.awt.Dimension(41, 50));
        jLabel1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel1MouseClicked(evt);
            }
        });
        jPanel1.add(jLabel1);

        getContentPane().add(jPanel1, java.awt.BorderLayout.PAGE_START);

        jPanel2.setBackground(resourceMap.getColor("jPanel2.background")); // NOI18N
        jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder(null, resourceMap.getColor("jPanel2.border.shadowColor"))); // NOI18N
        jPanel2.setName("jPanel2"); // NOI18N
        jPanel2.setPreferredSize(new java.awt.Dimension(160, 245));
        jPanel2.setLayout(new java.awt.BorderLayout(0, 2));

        jPanel4.setBackground(resourceMap.getColor("jPanel4.background")); // NOI18N
        jPanel4.setName("jPanel4"); // NOI18N
        jPanel4.setPreferredSize(new java.awt.Dimension(140, 20));
        jPanel4.setLayout(new java.awt.BorderLayout());

        jPanel8.setBackground(resourceMap.getColor("jPanel8.background")); // NOI18N
        jPanel8.setName("jPanel8"); // NOI18N
        jPanel8.setPreferredSize(new java.awt.Dimension(50, 70));
        jPanel8.setLayout(new java.awt.BorderLayout());

        jLabelLogin.setBackground(resourceMap.getColor("jLabelLogin.background")); // NOI18N
        jLabelLogin.setFont(resourceMap.getFont("jLabelLogin.font")); // NOI18N
        jLabelLogin.setForeground(resourceMap.getColor("jLabelLogin.foreground")); // NOI18N
        jLabelLogin.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelLogin.setText(resourceMap.getString("jLabelLogin.text")); // NOI18N
        jLabelLogin.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 1, 0, 0, resourceMap.getColor("jLabelLogin.border.matteColor"))); // NOI18N
        jLabelLogin.setMinimumSize(new java.awt.Dimension(40, 17));
        jLabelLogin.setName("jLabelLogin"); // NOI18N
        jLabelLogin.setPreferredSize(new java.awt.Dimension(40, 17));
        jLabelLogin.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabelLoginMouseClicked(evt);
            }
        });
        jPanel8.add(jLabelLogin, java.awt.BorderLayout.CENTER);

        jPanel4.add(jPanel8, java.awt.BorderLayout.LINE_END);

        jPanel9.setBackground(resourceMap.getColor("jPanel9.background")); // NOI18N
        jPanel9.setName("jPanel9"); // NOI18N
        jPanel9.setPreferredSize(new java.awt.Dimension(100, 60));
        jPanel9.setLayout(new java.awt.BorderLayout());

        jLabelNameemployee.setFont(resourceMap.getFont("jLabelNameemployee.font")); // NOI18N
        jLabelNameemployee.setForeground(resourceMap.getColor("jLabelNameemployee.foreground")); // NOI18N
        jLabelNameemployee.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelNameemployee.setText(resourceMap.getString("jLabelNameemployee.text")); // NOI18N
        jLabelNameemployee.setName("jLabelNameemployee"); // NOI18N
        jPanel9.add(jLabelNameemployee, java.awt.BorderLayout.CENTER);

        jPanel4.add(jPanel9, java.awt.BorderLayout.CENTER);

        jPanel2.add(jPanel4, java.awt.BorderLayout.PAGE_START);

        jPanel6.setBackground(resourceMap.getColor("jPanel6.background")); // NOI18N
        jPanel6.setName("jPanel6"); // NOI18N
        jPanel6.setLayout(new java.awt.GridLayout(8, 1, 0, 15));

        jLabel10.setText(resourceMap.getString("jLabel10.text")); // NOI18N
        jLabel10.setName("jLabel10"); // NOI18N
        jPanel6.add(jLabel10);

        ChangePassword.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        ChangePassword.setIcon(resourceMap.getIcon("ChangePassword.icon")); // NOI18N
        ChangePassword.setName("ChangePassword"); // NOI18N
        ChangePassword.setPreferredSize(new java.awt.Dimension(188, 50));
        ChangePassword.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                ChangePasswordMouseClicked(evt);
            }
        });
        jPanel6.add(ChangePassword);

        Employee.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        Employee.setIcon(resourceMap.getIcon("Employee.icon")); // NOI18N
        Employee.setName("Employee"); // NOI18N
        Employee.setPreferredSize(new java.awt.Dimension(188, 50));
        Employee.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                EmployeeMouseClicked(evt);
            }
        });
        jPanel6.add(Employee);

        Order.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        Order.setIcon(resourceMap.getIcon("Order.icon")); // NOI18N
        Order.setName("Order"); // NOI18N
        Order.setPreferredSize(new java.awt.Dimension(130, 50));
        Order.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                OrderMouseClicked(evt);
            }
        });
        jPanel6.add(Order);

        Product.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        Product.setIcon(resourceMap.getIcon("Product.icon")); // NOI18N
        Product.setName("Product"); // NOI18N
        Product.setPreferredSize(new java.awt.Dimension(188, 50));
        Product.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                ProductMouseClicked(evt);
            }
        });
        jPanel6.add(Product);

        Report.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        Report.setIcon(resourceMap.getIcon("Report.icon")); // NOI18N
        Report.setName("Report"); // NOI18N
        Report.setPreferredSize(new java.awt.Dimension(188, 50));
        Report.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                ReportMouseClicked(evt);
            }
        });
        jPanel6.add(Report);

        Solution.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        Solution.setIcon(resourceMap.getIcon("Solution.icon")); // NOI18N
        Solution.setName("Solution"); // NOI18N
        Solution.setPreferredSize(new java.awt.Dimension(188, 50));
        Solution.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                SolutionMouseClicked(evt);
            }
        });
        jPanel6.add(Solution);

        jPanel2.add(jPanel6, java.awt.BorderLayout.CENTER);

        jPanel7.setBackground(resourceMap.getColor("jPanel7.background")); // NOI18N
        jPanel7.setName("jPanel7"); // NOI18N
        jPanel7.setPreferredSize(new java.awt.Dimension(130, 200));
        jPanel7.setRequestFocusEnabled(false);

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 156, Short.MAX_VALUE)
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 200, Short.MAX_VALUE)
        );

        jPanel2.add(jPanel7, java.awt.BorderLayout.PAGE_END);

        getContentPane().add(jPanel2, java.awt.BorderLayout.LINE_START);

        jPanel3.setBackground(resourceMap.getColor("jPanel3.background")); // NOI18N
        jPanel3.setBorder(javax.swing.BorderFactory.createEtchedBorder(null, resourceMap.getColor("jPanel3.border.shadowColor"))); // NOI18N
        jPanel3.setName("jPanel3"); // NOI18N
        jPanel3.setPreferredSize(new java.awt.Dimension(160, 565));

        jLabelGroup.setFont(resourceMap.getFont("jLabelGroup.font")); // NOI18N
        jLabelGroup.setForeground(resourceMap.getColor("jLabelGroup.foreground")); // NOI18N
        jLabelGroup.setText(resourceMap.getString("jLabelGroup.text")); // NOI18N
        jLabelGroup.setName("jLabelGroup"); // NOI18N

        jLabel3.setBackground(resourceMap.getColor("jLabel3.background")); // NOI18N
        jLabel3.setFont(resourceMap.getFont("jLabel3.font")); // NOI18N
        jLabel3.setForeground(resourceMap.getColor("jLabel3.foreground")); // NOI18N
        jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
        jLabel3.setName("jLabel3"); // NOI18N

        jLabel4.setFont(resourceMap.getFont("jLabel4.font")); // NOI18N
        jLabel4.setForeground(resourceMap.getColor("jLabel4.foreground")); // NOI18N
        jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
        jLabel4.setName("jLabel4"); // NOI18N

        jLabel5.setFont(resourceMap.getFont("jLabel5.font")); // NOI18N
        jLabel5.setForeground(resourceMap.getColor("jLabel5.foreground")); // NOI18N
        jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
        jLabel5.setName("jLabel5"); // NOI18N

        jLabel6.setFont(resourceMap.getFont("jLabel6.font")); // NOI18N
        jLabel6.setForeground(resourceMap.getColor("jLabel6.foreground")); // NOI18N
        jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N
        jLabel6.setName("jLabel6"); // NOI18N

        jLabel7.setFont(resourceMap.getFont("jLabel7.font")); // NOI18N
        jLabel7.setForeground(resourceMap.getColor("jLabel7.foreground")); // NOI18N
        jLabel7.setText(resourceMap.getString("jLabel7.text")); // NOI18N
        jLabel7.setName("jLabel7"); // NOI18N

        jLabelStudent.setFont(resourceMap.getFont("jLabelStudent.font")); // NOI18N
        jLabelStudent.setForeground(resourceMap.getColor("jLabelStudent.foreground")); // NOI18N
        jLabelStudent.setText(resourceMap.getString("jLabelStudent.text")); // NOI18N
        jLabelStudent.setName("jLabelStudent"); // NOI18N

        jLabelNameProject.setFont(resourceMap.getFont("jLabelNameProject.font")); // NOI18N
        jLabelNameProject.setForeground(resourceMap.getColor("jLabelNameProject.foreground")); // NOI18N
        jLabelNameProject.setText(resourceMap.getString("jLabelNameProject.text")); // NOI18N
        jLabelNameProject.setName("jLabelNameProject"); // NOI18N

        jLabel8.setFont(resourceMap.getFont("jLabel8.font")); // NOI18N
        jLabel8.setForeground(resourceMap.getColor("jLabel8.foreground")); // NOI18N
        jLabel8.setText(resourceMap.getString("jLabel8.text")); // NOI18N
        jLabel8.setName("jLabel8"); // NOI18N

        jLabel16.setFont(resourceMap.getFont("jLabel16.font")); // NOI18N
        jLabel16.setForeground(resourceMap.getColor("jLabel16.foreground")); // NOI18N
        jLabel16.setText(resourceMap.getString("jLabel16.text")); // NOI18N
        jLabel16.setName("jLabel16"); // NOI18N

        jLabelStartDate.setFont(resourceMap.getFont("jLabelStartDate.font")); // NOI18N
        jLabelStartDate.setForeground(resourceMap.getColor("jLabelStartDate.foreground")); // NOI18N
        jLabelStartDate.setText(resourceMap.getString("jLabelStartDate.text")); // NOI18N
        jLabelStartDate.setName("jLabelStartDate"); // NOI18N

        jLabel18.setFont(resourceMap.getFont("jLabel18.font")); // NOI18N
        jLabel18.setForeground(resourceMap.getColor("jLabel18.foreground")); // NOI18N
        jLabel18.setText(resourceMap.getString("jLabel18.text")); // NOI18N
        jLabel18.setName("jLabel18"); // NOI18N

        jLabelFinish.setFont(resourceMap.getFont("jLabelFinish.font")); // NOI18N
        jLabelFinish.setForeground(resourceMap.getColor("jLabelFinish.foreground")); // NOI18N
        jLabelFinish.setText(resourceMap.getString("jLabelFinish.text")); // NOI18N
        jLabelFinish.setName("jLabelFinish"); // NOI18N

        jLabel20.setFont(resourceMap.getFont("jLabel20.font")); // NOI18N
        jLabel20.setForeground(resourceMap.getColor("jLabel20.foreground")); // NOI18N
        jLabel20.setText(resourceMap.getString("jLabel20.text")); // NOI18N
        jLabel20.setName("jLabel20"); // NOI18N

        jLabel9.setIcon(resourceMap.getIcon("jLabel9.icon")); // NOI18N
        jLabel9.setName("jLabel9"); // NOI18N

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(22, 22, 22)
                        .addComponent(jLabel8))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(22, 22, 22)
                        .addComponent(jLabel16))
                    .addComponent(jLabel9, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jLabelStartDate, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel3Layout.createSequentialGroup()
                                .addGap(10, 10, 10)
                                .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel3Layout.createSequentialGroup()
                                .addGap(10, 10, 10)
                                .addComponent(jLabel18))
                            .addComponent(jLabelFinish, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 123, Short.MAX_VALUE)))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabelNameProject, javax.swing.GroupLayout.DEFAULT_SIZE, 138, Short.MAX_VALUE))
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel3Layout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(jLabelStudent, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel3Layout.createSequentialGroup()
                            .addGap(24, 24, 24)
                            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel7)
                                .addComponent(jLabel6)
                                .addComponent(jLabel5)
                                .addComponent(jLabel4)
                                .addComponent(jLabel3))))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabelGroup, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addComponent(jLabelGroup)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabelStudent)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel5)
                .addGap(9, 9, 9)
                .addComponent(jLabel6)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(10, 10, 10)
                .addComponent(jLabelNameProject, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(1, 1, 1)
                .addComponent(jLabel16)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabelStartDate, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(9, 9, 9)
                .addComponent(jLabelFinish, javax.swing.GroupLayout.PREFERRED_SIZE, 16, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel20)
                .addGap(26, 26, 26)
                .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(93, 93, 93))
        );

        getContentPane().add(jPanel3, java.awt.BorderLayout.LINE_END);

        jPanel5.setName("jPanel5"); // NOI18N
        jPanel5.setLayout(new java.awt.BorderLayout());

        jDesktopPane1.setBackground(resourceMap.getColor("jDesktopPane1.background")); // NOI18N
        jDesktopPane1.setBorder(javax.swing.BorderFactory.createEtchedBorder(null, resourceMap.getColor("jDesktopPane1.border.shadowColor"))); // NOI18N
        jDesktopPane1.setName("jDesktopPane1"); // NOI18N
        jPanel5.add(jDesktopPane1, java.awt.BorderLayout.CENTER);

        getContentPane().add(jPanel5, java.awt.BorderLayout.CENTER);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jLabel1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel1MouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_jLabel1MouseClicked

    private void EmployeeMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_EmployeeMouseClicked
        // TODO add your handling code here:
        JLabel l = (JLabel) evt.getSource();
        if (!l.isEnabled()) {
            return;
        }
        JInternalFrameEmployee jem = new JInternalFrameEmployee();
        this.jDesktopPane1.add(jem);
        jem.setVisible(true);

    }//GEN-LAST:event_EmployeeMouseClicked

    private void OrderMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_OrderMouseClicked
        // TODO add your handling code here:
        JLabel l = (JLabel) evt.getSource();
        if (!l.isEnabled()) {
            return;
        }
        JInternalFrameManageOrder jmo = new JInternalFrameManageOrder();
        this.jDesktopPane1.add(jmo);
        jmo.setVisible(true);
    }//GEN-LAST:event_OrderMouseClicked

    private void ReportMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_ReportMouseClicked
        // TODO add your handling code here:
        JLabel l = (JLabel) evt.getSource();
        if (!l.isEnabled()) {
            return;
        }
        JInternalFrameReport jrp = new JInternalFrameReport();
        this.jDesktopPane1.add(jrp);
        jrp.setVisible(true);

    }//GEN-LAST:event_ReportMouseClicked

    private void ProductMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_ProductMouseClicked
        // TODO add your handling code here:
        JLabel l = (JLabel) evt.getSource();
        if (!l.isEnabled()) {
            return;
        }
        JInternalFrameManageProduct jmp = new JInternalFrameManageProduct();
        this.jDesktopPane1.add(jmp);
        jmp.setVisible(true);
    }//GEN-LAST:event_ProductMouseClicked

    private void SolutionMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_SolutionMouseClicked

        JLabel l = (JLabel) evt.getSource();
        if (!l.isEnabled()) {
            return;
        }
        JInternalFrameSolution jso = new JInternalFrameSolution();
        this.jDesktopPane1.add(jso);
        jso.setVisible(true);
    }//GEN-LAST:event_SolutionMouseClicked

    private void ChangePasswordMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_ChangePasswordMouseClicked
        // TODO add your handling code here:
        JLabel l = (JLabel) evt.getSource();
        if (!l.isEnabled()) {
            return;
        }
        JInternalFrameChangePassword jed = new JInternalFrameChangePassword();
        this.jDesktopPane1.add(jed);
        jed.setVisible(true);
    }//GEN-LAST:event_ChangePasswordMouseClicked

    private void jLabelLoginMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabelLoginMouseClicked
        // TODO add your handling code here:
        index = JFrameLogin.indexlanguage;
        JFrameLogin jl = new JFrameLogin();
        jl.setVisible(true);

        this.dispose();
    }//GEN-LAST:event_jLabelLoginMouseClicked

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new JFrameMainFram().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel ChangePassword;
    private javax.swing.JLabel Employee;
    private javax.swing.JLabel Order;
    private javax.swing.JLabel Product;
    private javax.swing.JLabel Report;
    private javax.swing.JLabel Solution;
    private javax.swing.JDesktopPane jDesktopPane1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JLabel jLabelFinish;
    private javax.swing.JLabel jLabelGroup;
    private javax.swing.JLabel jLabelLogin;
    private javax.swing.JLabel jLabelNameProject;
    private javax.swing.JLabel jLabelNameemployee;
    private javax.swing.JLabel jLabelStartDate;
    private javax.swing.JLabel jLabelStudent;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    // End of variables declaration//GEN-END:variables
}
